import request from '@/utils/request'

// 查询传承人管理列表
export function listInheritor(query) {
  return request({
    url: '/management/inheritor/list',
    method: 'get',
    params: query
  })
}

// 查询传承人管理详细
export function getInheritor(id) {
  return request({
    url: '/management/inheritor/' + id,
    method: 'get'
  })
}

// 新增传承人管理
export function addInheritor(data) {
  return request({
    url: '/management/inheritor',
    method: 'post',
    data: data
  })
}

// 修改传承人管理
export function updateInheritor(data) {
  return request({
    url: '/management/inheritor',
    method: 'put',
    data: data
  })
}

// 删除传承人管理
export function delInheritor(id) {
  return request({
    url: '/management/inheritor/' + id,
    method: 'delete'
  })
}
